package com.monlyu.vo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.monlyu.annotation.Comment;

/**
 * 角色信息表
 * 
 * @author monlyu
 */
@Entity
@Table(name = "t_role")
@Comment(common = "系统角色表")
public class Role extends BaseVo {

	@Id
	@Column(name = "r_id")
	@Comment(common = "角色编号")
	private Long id;

	@Column(name = "r_desc", length = MAX_VCHAR_MYSQL)
	@Comment(common = "角色描述")
	private String desc;

	@Column(name = "r_name", length = MAX_VCHAR_MYSQL)
	@Comment(common = "角色名称")
	private String name;

	@Column(name = "r_enable")
	@Comment(common = "是否可用")
	private boolean enable;

	public boolean isEnable() {
		return enable;
	}

	public void setEnable(boolean enable) {
		this.enable = enable;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

}
